<?php foreach ($data as $task): ?>
<div class="entry"><?php echo $task['Task']['task_name']; ?> | <?php echo $html->link("编辑", array('controller' => 'tasks', 'action' => 'edit', $task['Task']['id'])); ?></div>
<?php endforeach; ?>